<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>重庆邮电大学用户激活</title>
<style type="text/css">
*{padding: 0px; margin: 0px;}
html, body{font-size: 12px; color: #000000; text-align: center; font-family: "simsun"; line-height: 18px; margin:0px auto;}
html { height: 100%; min-height: 500px; _height:500px; }
body { height: 100%; background: #f2fcff url('<%=basePath%>images/activation/login_bodybg.jpg') repeat-x scroll left bottom; }

ol,ul,li{list-style:none; margin: 0px; padding: 0px; }

h1,h2,h3,h4,h5,font{ font-size: 12px;}

a:link    {font-size: 12px; color: #000000; text-decoration: none; border:none;}
a:visited {font-size: 12px; color: #000000; text-decoration: none; border:none;}
a:hover   {font-size: 12px; color: #000000; text-decoration: underline; border:none;}
a:active  {font-size: 12px; color: #000000; text-decoration: none; border:none;}

a img{ border: none;}

#con { width: 484px; height: 486px; position: absolute; left: 50%; top: 50%; margin: -240px 0px 0px -242px; text-align: center;}
#logo { width: 440px; margin: 0 auto; height: 86px; }
#login-box { width: 483px; height: 400px; margin: 0 auto; background: transparent url('<%=basePath%>images/activation/login_login-box.png') no-repeat scroll left top; _background: transparent url('<%=basePath%>images/activation/login_login-box.gif') no-repeat scroll left top;}
#login-box { color: #353638; text-align: left; }
#login-box p { padding: 5px 0px 5px 100px; *padding: 5px 0px 0px 100px; }
#login-box p.first { padding-top: 100px; }
#login-box p label { display: inline-block; width: 60px; line-height: 24px; text-align: right; margin-right: 10px; }
#login-box p input.text { margin: 0; width: 180px; height: 22px; line-height: 22px; border: 1px #6c6c6c solid; padding: 0px 5px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
#login-box p input.login { width: 82px; height: 27px; margin-left: 60px; margin-top:2px; color: #ffffff; cursor: pointer; border: none; background: transparent url('<%=basePath%>images/activation/login_login.gif') no-repeat scroll left top; }
#login-box p input.logint { width: 82px; height: 27px; margin-left: 20px; margin-top:2px; color: #ffffff; cursor: pointer; border: none; background: transparent url('<%=basePath%>images/activation/login_login.gif') no-repeat scroll left top; }
</style>
<!--[if lte IE 6]>
<script type="text/javascript" src="js/pngfix.js"></script>
<![endif]-->
<script language="javascript" type="text/javascript">
	function msg()
	{
		var msg='';
		var state = '<%=request.getAttribute("state")%>';
		if(state != 'null'){
			msg = state;
		}
		var message = '<%=request.getAttribute("message")%>';
		if(message != 'null'){
			msg = msg + message;
		}
		if(msg != ''){
			alert(msg);
		}
		
	}
		function login(){
			document.getElementById('loginForm').submit();
		}
	function img1(){
	document.getElementById('image').src+="?";
	document.getElementById('captcha_response').value="";
 	 };	
 	 function exit(){
	document.getElementById('loginId').value="";
	document.getElementById('pwd').value="";
	document.getElementById('captcha_response').value="";
 	 };	
 	 msg()
</script>
</head>

<body oncontextmenu="return false" onselectstart="return false">
<div id="con">
	<div id="logo">
    	<img alt="重庆邮电大学用户激活" src="<%=basePath%>images/activation/login_logo.png" class="pngfix" />
    </div>
    <div id="login-box" class="pngfix">
    	<form method="post" id='loginForm' action="<%=basePath%>mail/userMail.do">
        <input type="hidden" name="isxzdl" value="0">
        <p class="first">
        	<label>
            登录名:
            </label>
            <input type="text" id="loginId" name="loginId" class="text" style="width:200px;"/>
        </p>
        <p>
        	<label>
            密&nbsp; 码:
            </label>
        	<input type="password" id="pwd" name="pwd" class="text" style="width:200px;"/>
        </p>
        <p>
        	<label>
            验证码:
            </label>
        	<input type="text" name="captcha_response" id="captcha_response" class="text" style="width:200px;"/>
        </p>
        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<img id='image' src='<%=basePath%>security/message/captcha.do'/><a href="javaScript:img1();">看不清,换一张</a>
        </p>
        <p>
        	<a href="javaScript:login();" ><input type="submit" name="put" value="激活" class="login" onClick="return checksubmit()"/></a>
        	<a href="javaScript:exit();" ><input type="button" name="put" value="取消" class="logint" onClick="exit()"/></a>
        				<a href="<%=basePath%>help/yhjh.jsp" target="_blank">帮助</a>
        </p>
        </form>
    </div>
</div>
</body>
</html>
